<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String menuName = request.getParameter("menuName") == null ? ""
			: (String) request.getParameter("menuName");
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="租房,买房,三棵松,地产,中介" />
<meta name="description" content="三棵松地产" />
<title>三棵松地产</title>
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/houseList.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/frontpages/district/district.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/BrightSide.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/mytestcss.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/common.css" />
<script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript">
	function submitForm() {
		document.buildingForm.submit();
	}
	function setTopAreaId(topAreaId) {
		document.buildingForm.topAreaId.value = topAreaId;
		document.buildingForm.areaId.value = null;
		submitForm();
	}
	function setAreaId(areaId) {
		document.buildingForm.areaId.value = areaId;
		submitForm();
	}
	function setMetro(id) {
		document.buildingForm.metroId.value = id;
	submitForm();
}
</script>
</head>
<body onload="javascript:changeMenu('<%=menuName%>');">
	<div class="wrap">
		<jsp:include page="../header.jsp"></jsp:include>
		<a href="<%=basePath%>" hidefocus="true">SKS房地产</a> &gt;
		<a href="<%=basePath %>sks/district.do?method=list&menuName=village" target="_self" hidefocus="true">小区</a>					
		<div class="content-wrap">
			<div class="blank5"></div>
			<form
				action="<%=basePath%>sks/district.do?method=list&menuName=<%=menuName%>"
				id="buildingForm" name="buildingForm" method="post">
				<input name="topAreaId" type="hidden"
					value="${buildingForm.topAreaId}" /> <input name="areaId"
					type="hidden" value="${buildingForm.areaId}" /> <input
					name="metroStationId" type="hidden"
					value="${buildingForm.metroStationId}" /> <input name="metroId"
					type="hidden" value="${buildingForm.metroId}" /> <input
					name="rentNum" type="hidden" value="${buildingForm.rentNum}" /> <input
					name="saleNum" type="hidden" value="${buildingForm.saleNum}" /> <input
					name="buildingId" type="hidden" value="${buildingForm.buildingId}" />
				<div id="content">
					<div class="headMetro_listing box">
						<!-- 搜索 -->
						<div class="head_listing_nav">
							<div class="headMetroList">
								<!-- 区域、板块 -->
								<div class="listing_area">
									<span>区域：</span> <a id="areaNotLimit"
										href="javascript:setTopAreaId(null);">不限</a>
									<c:forEach var="ta" items="${areaPageView}">
										<c:if test="${ta.areaId <9}">
											<a href="javascript:setTopAreaId(${ta.areaId});"
												title="${ta.name}"
												<c:if test="${ta.areaId eq buildingForm.topAreaId}">style="font-weight:bold"style="font-weight:bold"</c:if>>${ta.name}</a>
										</c:if>
									</c:forEach>
								</div>
								<!-- 地铁 -->
								<div class="listing_bedroom">
									<span>地铁：</span> <a id="metroNotLimit"
										href="javascript:setMetro(null);">不限</a>
									<c:forEach var="ht" items="${metroPageView}">
										<a href="javascript:setMetro('${ht.metroId}');"
											title="${ht.name}"
											<c:if test="${ht.metroId eq buildingForm.metroId}">style="font-weight:bold"</c:if>>${ht.name}</a>
									</c:forEach>
								</div>
							</div>
						</div>
					</div>
					<div class="blank8"></div>
					<div class="list_contain">
						<div class="listing">
							<div class="search-result2 box">
								<div class="search_bottom all_bg_line">
									<div class="totalnum">
										共找到<strong>${pageView.totalrecord}</strong>个小区信息

									</div>
								</div>
							</div>
							<div style="clear: both;"></div>
							<ol id="list_body">
								<c:forEach var="b" items="${pageView.records}">
									<li id="li_apf_id_12">
										<div class="property2" id="apf_id_12">
											<div class="photo">
												<a
													href="<%=basePath%>sks/districtInfo.do?method=base&menuName=village&buildingId=${b.buildingId }"
													class="photo" title="${b.name}" target="_blank"><img
													class="thumbnail" id="apf_id_13_a" alt="${h.name}"
													src="<%=basePath%>${b.pictures['0'].fullPathName}"
													width="150" height="108" /> </a>
											</div>
											<div class="details">
												<h4>
													<a id="comm_name_qt_apf_id_12"
														href="<%=basePath%>sks/districtInfo.do?method=base&menuName=village&buildingId=${b.buildingId }"
														target="_blank">${b.name}</a>&nbsp;
												</h4>
												<address id="comm_addr_qt_apf_id_12">
													<span
														style="overflow: hidden; float: left; font-family: Simsun">[${b.area.parentArea.name
														}--${b.area.name }]${b.address}</span>
												</address>
												<p class="date">
													<span> 竣工时间：<c:if test="${b.finishDate == null}">--</c:if><c:if test="${b.finishDate != null}"><fmt:formatDate value='${b.finishDate}'
															pattern='yyyy-MM-dd' /> </c:if></span> <span></span>
												</p>
												<p class="house">
													<span id="comm_sale_qt_apf_id_28">二手房 <a
														href="<%=basePath%>sks/districtInfo.do?method=houseSaleList&menuName=village&isRent=Buy&buildingId=${b.buildingId }"
														target="_blank" style="color: #335293;">${b.sale }套</a> </span> <span
														id="comm_rent_qt_apf_id_28">租房 <a
														href="<%=basePath%>sks/districtInfo.do?method=houseRentList&menuName=village&isRent=Rent&buildingId=${b.buildingId }"
														target="_blank" style="color: #335293;">${b.rent }套</a> </span>
												</p>
											</div>
										</div></li>
								</c:forEach>
							</ol>
							<fy:page
								actionPath="sks/district.do?method=list&menuName=village"
								isNewForm="false" formName="buildingForm"
								curPageNo="${pageView.currentpage}"
								pageSize="${pageView.maxresult}"
								totalRows="${pageView.totalrecord}" />
							<div class="multi_page_div"></div>
							<div style="clear: both;"></div>
						</div>
						<div class="side_content">
							<div class="historybox nolist">
								<h4 style="margin-bottom: 5px;">你最近浏览过的房源</h4>
								<table id="historyhouse"></table>
							</div>
							<div id="IFX_p13" style="clear: both; margin: 15px 0 15px 0px;"></div>

							<div
								style="width: 210px; height: 220px; margin: 0 auto; padding: 9px 0 9px 9px; margin-top: 5px;"
								id="adanjuke_zoneid_comm_001"></div>
						</div>
					</div>
				</div>
			</form>
			<div id="clear"></div>
			<div class="blank10"></div>
			<!-- footer starts here -->
			<jsp:include page="../rooster.jsp"></jsp:include>
			<!-- footer ends here -->
		</div>
	</div>
</body>
<script type="text/javascript">
changeMenu('<%=menuName%>');
function getHistoryHouse() {
	$.ajax({
        type : "POST",
        url : "/sks/house.do",
        data : "method=history",
        dataType : "text",
        success : callback
    });
}
function callback(data) {
	var obj = $('#historyhouse');
	obj.html(data);
}
getHistoryHouse();
</script>
</html>